package top.superflow.db.api

import scala.collection.mutable.Map

trait DBEntity {
  
  def existsProperty (propertyName : String): Boolean
  
  def addField(field : DBField)
  
  def createIndex(index : DBIndex)
  
  def getField(name : String) : Option[DBField]
  
  def getFields : Option[List[DBField]]

  def getIndexs : Option[List[DBIndex]]
  
  def getEntityName : String
}